package com.niuniu.rushdorm.util;
/**
 * @author Meng
 */
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

@Getter
@ToString
@AllArgsConstructor
public enum StatusEnum {
    NOT_START(515000,"选宿舍未开始"),
    END(515001,"选宿舍已结束"),
    GROUP_SUCCESS(515002,"队伍选宿舍已成功"),
    STUDENT_SUCCESS(515003,"学生已选宿舍"),
//    LOGIN_NAME_NOT_EXIST(511000,"登录名不存在"),
//    LOGIN_NAME_OR_PWD_ERROR(511001,"登录名或密码错误"),
//    UNVALID_REFRESH_TOKEN(511002,"refresh_token已失效"),
    ILLEGAL_TOKEN(511003,"token签名错误"),
//    REFRESH_LIMITED(511004,"更新token受限"),
    UNVALID_TOKEN(511005,"access_token已失效"),
//    INVALID_USER(511006,"用户已被禁用或删除"),
    UNLOGIN(511007,"用户未登录"),
//
//    GROUP_ALREADY_HAVE_TEAM(514000, "已经组队"),
//    GROUP_EMPTY_FORM(514001, "队名不能为空"),
//    GROUP_WRONG_FORMAT(514002, "参数类型有误"),//如数据项为integer类型, 提交的数据项字符串中含有字母
//
//    GROUP_ALREADY_ALLOCATED(514003, "队伍已经分配宿舍"),
//    GROUP_NO_SUCH_GROUP(514004, "没有这个队伍"),
//    GROUP_HAVE_MEMBERS(514005, "还有组员, 无法删除"),
//
//    GROUP_NO_AUTHORITY(514006, "无操作权限"),
//
//    GROUP_WRONG_TEAMID(514007, "错误的组号"),
//
//    GROUP_ALREADY_JOINED(514008, "已经组队"),
//    GROUP_REACH_GROUP_LIMIT(514009, "队伍成员人数达到上限"),
//    GROUP_GENDER_UNMATCHED(514010, "性别不匹配"),
//    GROUP_NOT_EXIST(514011, "没有加入队伍"),
//    GROUP_CREATOR_CAN_NOT_LEAVE(514012, "队长不能退队"),
//    GROUP_NOT_MEMBERS(514013, "不是组员"),
//
//
//    ORDER_ALREADY_HAS_DORM(515001, "学生已有宿舍"),
//
//
    SUCCESS(200,"成功"),
    UNCODE_ERROR(510000,"未编码的异常，请查看后台报错信息");
//    CLASS_NOT_EXIST(512001,"未找到班级信息");
//    NUM_OR_PWD_MISSING("A2000","用户名或密码为空"),
//    WRONG_NUM("A2001","学号错误"),
//    WRONG_PASSWORD("A2002","密码错误"),
//    EMPTY_NEW_PWD("A2003","新密码为空"),
//    WRONG_OLD_PWD("A2005","旧密码错误"),
//    UNLOGIN_STUDENT("A2004","学生未登录"),
//    WRONG_TOKEN("A2005","错误的token"),
//
//    WRONG_FORMAT_INT("A0100","参数格式错误，需要int"),
//
//    BUILDING_ID_MISSING("A3001","楼栋ID为空"),
//
//    NONLEADER_POST_ORDER("A4000","队员不能提交订单"),
//    NO_AVAILABLE_ROOM("B4001","没有可用房间"),
//    EXIST_SUCCESS_ORDER("B4002","已有成功订单"),
//
//    NO_AVAILABLE_BED_IN_BUILDING("B3000","所选楼栋没有可用床位"),
//    NO_AVAILABLE_BUILDING("B3001","没有可选楼栋"),
//    UNCODED_EXCEPTION("99999","未编号的异常");
    private final Integer code;
    private final String msg;
}
